package com.ezzd.pojo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @description tb_goods
 * @author 被遗忘的湫
 * @date 2022-08-01
 */
@Data
public class TbGoods implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 商品条码号
     */
    @ExcelProperty(value = "商品条码号", index = 0)
    private int goodsId;

    /**
     * 商品名
     */
    @ExcelProperty(value = "商品名", index = 1)
    private String goodsName;

    /**
     * 商品价格
     */
    @ExcelProperty(value = "商品价格", index = 2)
    private BigDecimal goodsPrice;

    /**
     * 商品计量单位
     */
    @ExcelProperty(value = "计量单位", index = 3)
    private String goodsUnit;

    /**
     * 生产厂家
     */
    @ExcelProperty(value = "生产厂家", index = 4)
    private String goodsManufacturer;

    /**
     * 生产日期
     */
    @ExcelProperty(value = "生产日期", index = 5)
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private Date goodsDate;

    /**
     * 保质期
     */
    @ExcelProperty(value = "保质期", index = 6)
    private String goodsShelflife;

}
